package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="OuterHouse"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class OuterHouse implements Serializable {

    /** identifier field */
    private Integer id;

    /** nullable persistent field */
    private Integer altId;

    /** nullable persistent field */
    private String address;

    /** nullable persistent field */
    private Double buildArea;

    /** nullable persistent field */
    private String isbought;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String holderName;

    /** nullable persistent field */
    private String holderCom;

    /** nullable persistent field */
    private String mateName;

    /** nullable persistent field */
    private String mateCom;

    /** full constructor */
    public OuterHouse(Integer altId, String address, Double buildArea, String isbought, String remark, String holderName, String holderCom, String mateName, String mateCom) {
        this.altId = altId;
        this.address = address;
        this.buildArea = buildArea;
        this.isbought = isbought;
        this.remark = remark;
        this.holderName = holderName;
        this.holderCom = holderCom;
        this.mateName = mateName;
        this.mateCom = mateCom;
    }

    /** default constructor */
    public OuterHouse() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="altId"
     *             length="10"
     *         
     */
    public Integer getAltId() {
        return this.altId;
    }

    public void setAltId(Integer altId) {
        this.altId = altId;
    }

    /** 
     *            @hibernate.property
     *             column="address"
     *             length="100"
     *         
     */
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /** 
     *            @hibernate.property
     *             column="buildArea"
     *             length="53"
     *         
     */
    public Double getBuildArea() {
        return this.buildArea;
    }

    public void setBuildArea(Double buildArea) {
        this.buildArea = buildArea;
    }

    /** 
     *            @hibernate.property
     *             column="isBought"
     *             length="1"
     *         
     */
    public String getIsbought() {
        return this.isbought;
    }

    public void setIsbought(String isbought) {
        this.isbought = isbought;
    }

    /** 
     *            @hibernate.property
     *             column="remark"
     *             length="50"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="holderName"
     *             length="50"
     *         
     */
    public String getHolderName() {
        return this.holderName;
    }

    public void setHolderName(String holderName) {
        this.holderName = holderName;
    }

    /** 
     *            @hibernate.property
     *             column="holderCom"
     *             length="100"
     *         
     */
    public String getHolderCom() {
        return this.holderCom;
    }

    public void setHolderCom(String holderCom) {
        this.holderCom = holderCom;
    }

    /** 
     *            @hibernate.property
     *             column="mateName"
     *             length="50"
     *         
     */
    public String getMateName() {
        return this.mateName;
    }

    public void setMateName(String mateName) {
        this.mateName = mateName;
    }

    /** 
     *            @hibernate.property
     *             column="mateCom"
     *             length="100"
     *         
     */
    public String getMateCom() {
        return this.mateCom;
    }

    public void setMateCom(String mateCom) {
        this.mateCom = mateCom;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
